package com.attilax.lang;

import java.util.HashMap;
import java.util.Map;
 

public class Dictionary<K, V> extends HashMap<K, V> {
	
	public static void main(String[] args) {
		  Map m=new HashMap ();
		  System.out.println(m.get("aa"));
	}

	public void Add(K hookPoint,V list) {
		super.put(hookPoint,list);
		
	}

	
	  public V get(Object paramObject)
	  {
	     V v = super.get(paramObject);
	     if(v==null)
	    	 throw new KeyNotFoundException(paramObject);
	     
		return v;
	  }
}
